package com.wise.service.cms.content.categoryindustry;

import cn.hutool.core.bean.BeanUtil;
import com.wise.summer.v1.cms.content.category.DeleteCategoryById;
import com.wise.summer.v1.cms.content.categoryindustry.DeleteCategoryIndustryById;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-10
 */
@Service
@SummerService
public class DeleteCategoryIndustryByIdService implements SummerServiceBean<DeleteCategoryIndustryById> {

	@Override
	public void sum(DeleteCategoryIndustryById summer) {
		DeleteCategoryById deleteCategoryById = new DeleteCategoryById();
		BeanUtil.copyProperties(summer, deleteCategoryById);
		deleteCategoryById.sum();
		summer.setSummerResult(Boolean.TRUE);
	}

}
